package com.coffeeloversupportlibrary.coffeelover.domain.article.adapter;

import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

/**
 * @author puyv
 * @createTime 2021/11/6 20:12
 * @projectName CoffeeLoverSupportLibrary
 * @className Adapter.java
 * @description TODO
 */
public interface Adapter<T> {
    /**
     * @date 2021/10/15 14:45
     * @params [parent]
     * @return androidx.recyclerview.widget.RecyclerView.ViewHolder
     * @description
     *
     */
    @NonNull
    RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent);

    /**
     * @date 2021/10/15 14:49
     * @params [items 数据源数组, holder, position]
     * @return void
     * @description TODO
     */
    void onBindViewHolder(@NonNull T items, @NonNull RecyclerView.ViewHolder holder, int position);



}
